//
//  HeadFormView.m
//  FormDemo
//
//  Created by zkingsoft on 16/1/5.
//  Copyright (c) 2016年 zkingsoft. All rights reserved.
//

#import "HeadFormView.h"

@interface HeadFormView (){

}

// 区头 需要显示内容的label
@property (nonatomic, strong) UILabel *headContentLabel;

@end

@implementation HeadFormView

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        self.headContentLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)];
        self.headContentLabel.textAlignment = NSTextAlignmentCenter;
        self.headContentLabel.textColor = [UIColor blueColor];
        [self addSubview:self.headContentLabel];
    }
    
    return self;
}

- (void)setHeadContentText:(NSString *)headContentText{
    _headContentText = headContentText;
    
    self.headContentLabel.text = headContentText;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
